<?php
/**

 //  DoYouHaoBaby-X Ucenter ( DoYouHaoBaby-X 计划 )
 //  +---------------------------------------------------------------------
 //
 //  “Copyright”
 //  +---------------------------------------------------------------------
 //	 | (C) 2010 - 2011 http://doyouhaobaby.net All rights reserved.
 //	 | This is not a free software, use is subject to license terms
 //  +---------------------------------------------------------------------
 //
 //  “About This File”
 //  +---------------------------------------------------------------------
 //	 | Ucenter 公用函数库
 //  +---------------------------------------------------------------------

*/

!defined( 'DYHB_PATH' ) && exit;

/**
 * 获取上级组
 */
function getRolenameByid( $nRoleId ){

   	$arrRole = RoleModel::F( 'role_id=?',$nRoleId )->asArray()->getOne( );
   	if( !isset( $arrRole['role_name'] ) )  return G::L( "没有上级分组" );
   	return $arrRole['role_name'];
}
